<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的购物车</title>
</head>
<body>
	购物车中的信息
	<br>
	<form action="Controller?action=list">
	<table border=1>
		<tr>
			<td>物品编号</td>
			<td>物品名称</td>
			<td>价格</td>
			<td>数量</td>
		</tr>
		<c:forEach var="item" items="${cart}">
			<tr>		
			    <input type="hidden" name="goodsid" value="${item.goods.goodsid}">
			    <td>${item.goods.goodsid}</td>
			    <td>${item.goods.goodsname}</td>
				<td>${item.goods.price}</td>
				<td><input type="text" name="quantity"
					value="${item.quantity}"></td>
				<td><input type="submit" name="action" value="修改"></td>
				<td><input type="submit" name="action" value="删除"></td>
			</tr>
		</c:forEach>
	</table>
</form>
</body>
</html>